package com.secsbrain.cmdb.dal.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 *
 * 机房表
 *
 */
@TableName(value = "cmdb_idc")
public class Idc implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/** 主键 */
	@TableId(type = IdType.AUTO)
	private Long id;

	/** 创建时间 */
	@TableField(value = "create_time")
	private Date createTime;

	/** 更新时间 */
	@TableField(value = "update_time")
	private Date updateTime;

	/** 创建人 */
	private String creator;

	/** 更新人 */
	private String updator;

	/** 机房名称，如南方基地 */
	private String name;

	/** 机房别名 */
	private String alias;

	/** 机房带宽 */
	private String bandwidth;

	/** 联系电话 */
	private String phone;

	/** 联系人，如小红 */
	private String linkman;

	/** 机房地址 */
	private String address;

	/** 联系邮箱 */
	@TableField(value = "concat_email")
	private String concatEmail;

	/** 机房签约时间 */
	@TableField(value = "sign_time")
	private Date signTime;

	/** 合同到期时间 */
	@TableField(value = "end_time")
	private Date endTime;

	/** IP地址段 */
	private String network;

	/** 互联网服务商ID，多个以,分隔 */
	@TableField(value = "operator_ids")
	private String operatorIds;

	/** 托管供应商ID */
	@TableField(value = "supplier_id")
	private Long supplierId;

	/** 机房等级ID */
	@TableField(value = "type_id")
	private Long typeId;
	
	@TableField(exist = false)
	private List<Cabinet> cabinets=new ArrayList<>();
	
	@TableField(exist = false)
	private String idclevelName;
	
	@TableField(exist = false)
	private String supplierName;
	
	@TableField(exist = false)
	private String ispNames;
	
	@TableField(exist = false)
	private String cabinetCount;

	public String getIdclevelName() {
		return idclevelName;
	}

	public void setIdclevelName(String idclevelName) {
		this.idclevelName = idclevelName;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public String getIspNames() {
		return ispNames;
	}

	public void setIspNames(String ispNames) {
		this.ispNames = ispNames;
	}

	/** 备注 */
	private String comment;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getUpdator() {
		return this.updator;
	}

	public void setUpdator(String updator) {
		this.updator = updator;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAlias() {
		return this.alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getBandwidth() {
		return this.bandwidth;
	}

	public void setBandwidth(String bandwidth) {
		this.bandwidth = bandwidth;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getLinkman() {
		return this.linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getConcatEmail() {
		return this.concatEmail;
	}

	public void setConcatEmail(String concatEmail) {
		this.concatEmail = concatEmail;
	}

	public Date getSignTime() {
		return this.signTime;
	}

	public void setSignTime(Date signTime) {
		this.signTime = signTime;
	}

	public Date getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getNetwork() {
		return this.network;
	}

	public void setNetwork(String network) {
		this.network = network;
	}

	public String getOperatorIds() {
		return this.operatorIds;
	}

	public void setOperatorIds(String operatorIds) {
		this.operatorIds = operatorIds;
	}

	public Long getSupplierId() {
		return this.supplierId;
	}

	public void setSupplierId(Long supplierId) {
		this.supplierId = supplierId;
	}

	public Long getTypeId() {
		return this.typeId;
	}

	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getCabinetCount() {
		return cabinetCount;
	}

	public void setCabinetCount(String cabinetCount) {
		this.cabinetCount = cabinetCount;
	}

	public List<Cabinet> getCabinets() {
		return cabinets;
	}

	public void setCabinets(List<Cabinet> cabinets) {
		this.cabinets = cabinets;
	}
	
}
